//
//  RJMainSuperVCViewController.h
//  AirQuality
//
//  Created by Po on 15/3/10.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "RJNavBar.h"
typedef NS_ENUM(NSUInteger, moveDirection){
    moveUp,
    moveDown,
    moveLeft,
    moveRight
};

@protocol RJMainSuperDelegate <NSObject>


/**释放资源*/
- (void)RJMainSuperVCFreeAll;
@optional
/**在页面即将移除时会调用*/
- (void)RJMainSuperVCWillFreeAll;

@end

@interface RJMainSuperVC : UIViewController
@property (retain, nonatomic) UIImageView * backgroundImage;
@property (retain, nonatomic) RJNavBar * navBar;
@property (retain, nonatomic) UIView * mainView;

@property (assign, nonatomic) id<RJMainSuperDelegate> delegate;

/**播放移动动画,direction:方向   isRemove:动画完成后是否移除*/
- (void)playMoveAnimDirection:(moveDirection)direction isRemove:(BOOL)isRemove;

/**释放资源*/
- (void)freeData;

@end
